{% extends "site_base.html" %}

{% load i18n %}
{% load bootstrap_tags %}

{% block head_title %}{% trans "Log In" %}{% endblock %}

{% block body %}
    <header class="jumbotron subhead" id="overview">
        <h1>{% trans "Log in" %}</h1>
        <p class="lead">{% trans "If you have an existing account, provide your login credentials below." %}</p>
    </header>

    <div class="row">
        <div class="span8">
            <form method="POST" action="{% url account_login %}" autocapitalize="off" class="form-horizontal"{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
                <legend>{% trans "Log in with an existing account" %}</legend>
                {% csrf_token %}
                {{ form|as_bootstrap }}
                {% if redirect_field_value %}
                    <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
                {% endif %}
                <div class="form-actions">
                    <a href="{% url account_password_reset %}" class="btn">{% trans "Forgot your password?" %}</a>
                    <button type="submit" class="btn btn-primary">{% trans "Log in" %}</button>
                </div>
            </form>
        </div>
        <div class="span4">
            {% include "account/_login_sidebar.html" %}
        </div>
    </div>
{% endblock %}